#ifndef EdlParser_H
#define EdlParser_H
#include <QString>
#include <QDomDocument>
#include <QVector>
#include "Entity.h"

/*!
 * Environment descriptor language parser. Parses map files for the server.
 */
class EdlParser
{
private:
    QDomDocument doc;

public:
    EdlParser();
    /*!
     * Parses the given XML file.
     */
    bool parseDocument(QString filename);
    /*!
     * Returns a vector of Entities(Obstacles or Robots) found in the parsed map file.
     */
    QVector<Entity> *getObjects();
};

#endif // EdlParser_H
